import {customeStruct} from '../utils';
const itf = customeStruct.interface;
export const InitData = itf({
    payload: itf({
        brands: [itf({
            id: 'string',
            name: 'string'
        })],
        carrier: [itf(Object.assign({
            id: 'string',
            name: 'string'
        }))],
    })
});
export const List = itf({
    payload: itf({
        content: [itf(Object.assign({
            id: 'string',
            brandName: 'string',
            dealerCode: 'string',
            code: 'string',
        }))],
        totalElements: 'number',
    })
});
export const Detail = itf({
    payload: itf(Object.assign({
        id: 'string',
        rowVersion: 'string? | null',
        partShipmentId: 'string',
        partInvoiceCode: 'string',
        carrierId: 'string',
    }))
});
export const DealerSimpleList = itf({
    payload: itf({
        content: [
            itf({
                id: 'string',
                code: 'string',
                name: 'string',
                branchCode: 'string',
                provinceName: 'string',
                countyName: 'string',
                contactName: 'string',
                contactPhone: 'string',
                cityName: 'string',
                address: 'string',
            })
        ]
    })
});
export const PartShipment = itf({
    payload: itf({
        content: [
            itf({
                partShipmentId: 'string',
                code: 'string',
                partInvoiceCode: 'string',
                invoicedDate: 'datetime',
                partShipOrderStatus: 'number? | null',
                partShipNoticeStatus: 'number? | null',
                partShipmentStatus: 'number',
                shipmentType: 'number? | null',
                origin: 'string? | null',
                destination: 'string? | null',
                carrierId: 'string? | null',
                carrierName: 'string? | null',
                invoiceAmount: 'number? | null',
            })
        ]
    })
});

export const PartShipmentDetail = itf({
    payload: itf({
        partShipmentId: 'string',
        partInvoiceCode: 'string',
        carrierId: 'string? | null',
        invoiceAmount: 'number? | null',
    })
});
